
import isFunction from './isFunction'
import mountComponent from './mountComponent'
import mountNativElement from './mountNativElement'
export default function mountElement (virtualDom , container, oldDom) {
  // nativeElement VS componentEelment
  if (isFunction(virtualDom)) {
    mountComponent(virtualDom , container, oldDom)
  } else {
    mountNativElement(virtualDom , container, oldDom)
  }
}